package com.caozhi.mspeoject.nb_search.remote;

import com.woniuxy.boot.common.bean.Media;
import com.woniuxy.boot.common.bean.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("nb-message")
public interface MessageRemote {
    @GetMapping("admin/message/get")
    List<Message> getMessages();
    @GetMapping("admin/media/getMediaByMessageId")
    List<Media> getMediaByMessageId(@RequestParam("messageId") Long messageId);

}
